#!/bin/sh

password='123456'

echo $password | sudo -S add-apt-repository ppa:jonathonf/python-3.6
echo $password | sudo -S apt update
echo $password | sudo -S apt install -y python3.6

echo $password | sudo -S apt install -y install python3-pip cmake-data libcurl3 libjsoncpp1

apt install python3-pip

echo $password | sudo -S pip3 install --upgrade pip

sudo apt-get install mysql-server
sudo apt isntall mysql-client
sudo apt install libmysqlclient-dev

#sudo -H pip3 install --target="/usr/local/lib/python3.6/dist-packages/" setuptools
#sudo -H pip3 install --target="/usr/local/lib/python3.6/dist-packages/" pyserial 
#sudo -H pip3 install --target="/usr/local/lib/python3.6/dist-packages/" virtualenv 
#sudo -H pip3 install --target="/usr/local/lib/python3.6/dist-packages/" virtualenvwrapper
sudo -H pip3 install --target="/usr/local/lib/python3.6/dist-packages/" -r ./requirements.txt 

